#!usr/bin/python
import sys
import time
from PyQt4.QtCore import *
from PyQt4.QtGui import *
def about():
app=QApplication(sys.argv)
promessage='Under the supervision of Mojtaba Eshghi,,,micro1224.parsfa.com,,,micro1224@gawab.com'
o='your OS software is not a registered version'
q='several signs of infected softwares detected '
label=QLabel('<font color=blue size=150><b>'+promessage+'</b><font>')
label.show()
QTimer.singleShot(120000, app.quit) # 1 minute
app.exec_()
print('')
print('')
print(' Mojtaba Eshghi')
print('')
print('this free software is designed to teach you some english words')
print('you shoul just type "help" or "h" at any part of program to get some help about this soft')
print('and if you wanna read about the author of this soft type "moji"')
def h():
print('')
print(' **This the documentation of the command-oriented version of eng-learn ;')
print(' **eng-learn is follows the GNU law of free softwares')
print(' **eng-learn consists of 5 lists of words each list containing of 10 words...')
print(' **after learning each list you can answer the questions of dictation...by typing "answer" at')
print(' any part of the progarm will achieve to the dictation part')
print(' **for exiting, simply type "exit"')
def list1():
print('')
print('')
print('*****************************************************_________________________________')
global a,k,b,l,c,m,n,d,e,o,f,p,g,q,h,r,i,s,j,t
a=' impel :'
k=['force','compel']
b=' urge : '
l=['encourage', 'exhort', 'enjoin', 'press', 'entreat']
c=' inward :'
m=['ingoing','concave']
d=' onward :'
n='advancing', 'progressing','forward','further'
e=' sentiment :'
o='view','feeling', 'attitude', 'thought', 'opinion', 'belief'
f=' guideline :'
p='recommendation','instruction','direction','suggestion', 'advice'
g=' rival :'
q='opponent', 'challenger', 'competitor', 'contender', 'adversary', 'antagonist', 'enemy'
h='applicant :'
r='candidate', 'interviewee', 'competitor', 'contestant', 'contender', 'entrant'
i=' contestant :'
s='competitor', 'participant', 'player', 'contender', 'candidate', 'aspirant'
j=' concern :'
t='be about','deal with', 'cover', 'discuss', 'go into', 'examine'
def list2():
print('')
print('')
global a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t
a=' ardent :'
k='passionate', 'fervent', 'zealous', 'wholehearted', 'vehement, intense, fierce'
b=' inversion :'
l='reversal, transposition, turning upside down; reverse'
c=' peculiar :'
m='strange, unusual, odd, funny, curious, bizarre, weird, queer'
d=' dismay :'
n='appal, horrify, shock, shake (up); disconcert, take aback, alarm'
e=' disgust :'
o='revolution, repugnance, aversion, distaste, nausea, abhorrence, loathing'
f=' meanwhile :'
p='simultaneously, concurrently'
g=' clutter :'
q='mess, jumble, litter, heap, tangle, muddle, hotchpotch'
h=' sophisticate :'
r='experienced'
i=' associated :'
s='related, connected, linked, correlated, similar, corresponding'
j=' concept :'
t='idea, notion, conception, abstraction; theory, hypothesis; belief'
def list3():
print('')
print('')
global a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t
a=' contest :'
k='competition, match, tournament, game, meet, event, trial'
b=' portion :'
l='part, piece, bit, section, segment.'
c=' manifest :'
m='display, show, exhibit, demonstrate, betray, present, reveal'
d=' convey :'
n='transport, carry, bring, take, fetch, bear, move, ferry, shuttle, shift'
e=' grasp :'
o='grip, clutch, clasp, hold, clench; catch, seize, grab, snatch'
f=' analogy :'
p='similarity, parallel, correspondence, likeness, resemblance, correlation'
g=' inherent :'
q='intrinsic, innate, connate, connatural, immanent'
h=' characteristic :'
r='attribute, feature'
i=' intangible :'
s='impalpable, untouchable, incorporeal, discarnate'
j=' asocial :'
t='withdrawn, aloof, antisocial; inconsiderate, selfish '
def list4():
print('')
print('')
global a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t
a=' fleet :'
k=' navy, naval force, (naval) task force, armada'
b=' depict :'
l='portray, represent, picture, illustrate, delineate, reproduce, render; draw'
c=' outline :'
m='silhouette, profile, shape, contours, form, line, delineation; diagram'
d=' partially :'
n='relatively, moderately'
e=' numerous :'
o='numberless, innumerable; several,'
f=' contend :'
p='compete, vie, fight,contest, tussle, strive, face'
g=' dock :'
q='harbour, marina, port, anchorage; wharf'
h=' align :'
r='place, position, situate, set, range'
i=' advantageous :'
s='superior, dominant, powerful; good, fortunate'
j=' survay :'
t='observe, view, contemplate, regard, inspect, scan'
def list5():
print('')
print('')
global a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t
a=' maneuver :'
k='move'
b=' peek :'
l='have a peek, spy'
c=' defy :'
m='disregard, ignore; break, violate, contravene'
d=' manipulate :'
n=' work; turn, pull, rub, knead, feel, palpate'
e=' decouple :'
o='separate'
f=' identical :'
p='indistinguishable, uniform, twin, interchangeable'
g=' wrap :'
q='SWATHE, bundle, swaddle, muffle, cloak, enfold, envelop'
h=' margin :'
r='EDGE, side, verge, border, perimeter, brink'
i=' regarding :'
s='CONSIDER, look on, view, see, think of, judge, deem, estimate'
j=' hellish :'
t='INFERNAL, Hadean; diabolical, fiendish, satanic, demonic; evil, wicked'
def showord():
print(a)
print(k)
y=input()
print(b);print(l);
y=input()
print(c);print(m);
y=input()
print(d);print(n);
y=input()
print(e);print(o);
y=input()
print(f);print(p);
y=input()
print(g);print(q);
y=input()
print(h);print(r);
y=input()
print(i);print(s);
y=input()
print(j);print(t);
y=input()
print('')
print('')
def answer():
print('Welcome to the dictation part of the eng-learn')
print('type the name of the list you want to practice for example "list1"')
print('')
ops=input('type the name of the list here>>> ')
print('')
if ops in l1:
list1()
elif ops in l2:
list2()
elif ops in l3:
list3()
elif ops in l4:
list4()
elif ops in l5:
list5()
def dict():
print('')
ph=[a,b,c,d,e,f,g,h,i,j]
kh=[k,l,m,n,o,p,q,r,s,t]
for on in range(0,10):
print('write the meaning of the following term ----->>>>>> ',ph[on])
print('')
andy=input(' ')
if andy==kh[on]:
print('correct :) :) :)')
else:
print('NO!!! that is wrong :( :( :(')
print('this is the correct answer >>>>> ',kh[on])
print('')
print('')
help=['help','h','hepl','hel','hell','he']
l1=['list1','lst1','lis1','l1','lt1','lits1']
l2=['list2','lst2','lis2','l2','lt2','lits2']
l3=['list3','lst3','lis3','l3','lt3','lits3']
l4=['list4','lst4','lis4','l4','lt4','lits4']
l5=['list5','lst5','lis5','l5','lt5','lits5']
ans=['ans','an','answer','anser']
wrox=['fuck you','fuck','fuck yourself','fuck your mother','asshole','ass hole','bitch']
for z in range(0,19):
u=input('enter your desired command here>>> ')
if u in help:
h()
elif u in l1:
list1()
print('these are words of list1 prepared to learn, press enter to go to next word')
showord()
showord()
print('the worlds of this list are finished, if you wanna answer the questions type "answer"')
print('')
elif u in l2:
list2()
print('these are words of list2 prepared to learn, press enter to go to next word')
showord()
showord()
print('the worlds of this list are finished, if you wanna answer the questions type "answer"')
print('')
elif u in l3:
list3()
print('these are words of list3 prepared to learn, press enter to go to next word')
showord()
showord()
print('the worlds of this list are finished, if you wanna answer the questions type "answer"')
print('')
elif u in l4:
list4()
print('these are words of list4 prepared to learn, press enter to go to next word')
showord()
showord()
print('the worlds of this list are finished, if you wanna answer the questions type "answer"')
print('')
elif u in l5:
print('these are words of list5 prepared to learn, press enter to go to next word')
showord()
showord()
print('the worlds of this list are finished, if you wanna answer the questions type "answer"')
print('')
elif u in ans:
print('how many lists do you want to practice, baby? ')
io=input(' ')
io=float(io)
io=int(io)
for x in range(0,io):
answer()
dict()
elif u=='exit':
exit()
elif u=='moji' :
about()
elif u in wrox :
print(' don''t use offensive words here asshole!!!')
else:
print(' command was not valid')
نظرات شما عزیزان:
نوشته شده توسط رامان (متفکر) |
لينک ثابت
|چهار شنبه 3 اسفند 1390برچسب:آموزش پایتون,پایتون,یادگیری پایتون,زبان پایتون,قطعه کد پایتون,سورس کد,سورس پاتون,Python,,|
|